import 'package:flutter/material.dart';
import 'package:flutterapp/component/AppLeftDrawer.dart';

class ImageView extends StatelessWidget {
	int _selectedIndex = 0;

	@override
	Widget build(BuildContext context) {
		return Scaffold(
			appBar: new AppBar(
				title: new Text('Assest Image'),
				actions: <Widget>[
					IconButton(icon: Icon(Icons.arrow_back), onPressed: () => {
					})
				],
			),
			drawer: new AppLeftDrawer(),
			bottomNavigationBar: BottomNavigationBar( // 底部导航
				items: <BottomNavigationBarItem>[
					BottomNavigationBarItem(icon: Icon(Icons.home), title: Text('Home')),
					BottomNavigationBarItem(icon: Icon(Icons.business), title: Text('Business')),
					BottomNavigationBarItem(icon: Icon(Icons.school), title: Text('School')),
				],
				currentIndex: _selectedIndex,
				fixedColor: Colors.blue,
				onTap: _onItemTapped,
			),
			floatingActionButton: FloatingActionButton( //悬浮按钮
				child: Icon(Icons.add),
				onPressed:_onAdd
			),
		);
	}

	void _onItemTapped(int index) {
	}
	void _onAdd(){
	}
}